﻿<%@ Page Title="" Language="C#" MasterPageFile="~/main.Master" AutoEventWireup="true" CodeBehind="CadastrarVersiculo.aspx.cs" Inherits="Presentation.Pages.CadastrarVersiculo" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table>
        <tr>
            <td class="style1">
                <asp:Label ID="Label1" runat="server" Text="Versículo :"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtVersiculo" runat="server" TextMode="MultiLine" Width="446px" Height="113px"
                    style="margin-right: 0px" BorderColor="#0099FF" 
                    BorderStyle="Solid" BorderWidth="1"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfvVersiculo" runat="server" Display="Dynamic" ControlToValidate="txtVersiculo"
                    ErrorMessage="Versículo." ToolTip="Campo Obrigatório." ValidationGroup="Salvar">*</asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td colspan="2" align="right">
                <asp:Button ID="btnSalvar" runat="server" Text="Salvar" ValidationGroup="Salvar"
                    OnClick="btnSalvar_Click" />
                <asp:ValidationSummary ID="vSum" runat="server" HeaderText="Favor verificar os seguintes campos :"
                    ShowMessageBox="True" ShowSummary="False" ValidationGroup="Salvar" />
            </td>
        </tr>
    </table>

<br />
    <br />
    <h1>
        Lista de Versículos
    </h1>
    <asp:GridView ID="grvVersiculo" runat="server" AutoGenerateColumns="False" CellPadding="4"
        ForeColor="#333333" GridLines="None" Width="100%">
        <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
        <Columns>
            <asp:BoundField DataField="Versiculo" HeaderText="Versículo" ReadOnly="True" SortExpression="Nome">
                <ControlStyle Width="80%" />
                <HeaderStyle Width="80%" HorizontalAlign="Center" />
                <ItemStyle HorizontalAlign="Center" />
            </asp:BoundField>
            <asp:TemplateField HeaderText="Excluir">
                <HeaderStyle Width="20%" HorizontalAlign="Center" />
                <ItemTemplate>
                    <asp:Button Text="Excluir" CommandArgument='<%# Eval("Codigo") %>' runat="server"
                        ID="btnExcluir" OnClick="btnExcluir_Click" />
                </ItemTemplate>
                <ItemStyle HorizontalAlign="Center" />
            </asp:TemplateField>
        </Columns>
        <EditRowStyle BackColor="#999999" />
        <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
        <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
        <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
        <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
        <SortedAscendingCellStyle BackColor="#E9E7E2" />
        <SortedAscendingHeaderStyle BackColor="#506C8C" />
        <SortedDescendingCellStyle BackColor="#FFFDF8" />
        <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
    </asp:GridView>
</asp:Content>
